package edu.cmu.vlis.wassup.databean;

/**
 * This class is used to map the relationship between Event and user
 * @author Jassica
 *
 */
public class EventsForUser {
	
	 private Event eventId;
	 private User userId;
	 private int decision = 2;
	 
	 // Constructor takes primary keys as arguments
	 public EventsForUser(Event event, User user) {
		 this.eventId = event;
		 this.userId 	= user;
	 }

	public Event getEventId() {
		return eventId;
	}

//	public void setEventId(Event eventId) {
//		this.eventId = eventId;
//	}

	public User getUserId() {
		return userId;
	}

//	public void setUserId(User userId) {
//		this.userId = userId;
//	}
	
	public int getDecision() {
		return decision;
	}

	public void setDecision(int decision) {
		this.decision = decision;
	}

	@Override
	public String toString() {
		return "Event is - " + eventId.getName() + " for user - " + userId;
	}
}

